import React, { Component } from 'react';
import NavBar from '../../components/NavBar'
class Index extends Component {

	render() {
		const { location, history } = this.props
		const { state } = location
		return (
			<div>
				<NavBar onLeftClick={ () => history.goBack() }>详情页</NavBar>
				<img src={state.url} alt="" width="100%" />
				<div style={{ padding: '10px' }}>
					<h3>{state.title}</h3>
					<p>{state.desc}</p>
				</div>
			</div>
		);
	}
}

export default Index;
